CREATE TABLE [dbo].[TTPERI_CCCP]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[AA_PERI] [dbo].[TD_IN_004_ANOS] NOT NULL,
[MM_PERI] [dbo].[TD_IN_002_MESE] NOT NULL,
[TI_SITU_CXCB] [dbo].[TD_VC_003] NOT NULL,
[TI_SITU_CXPA] [dbo].[TD_VC_003] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTPERI_CC__CO_US__56A9BBE0] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTPERI_CC__FE_US__579DE019] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTPERI_CC__CO_US__58920452] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTPERI_CC__FE_US__5986288B] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTPERI_CCCP] WITH NOCHECK ADD CONSTRAINT [CK__TTPERI_CC__AA_PE__54C1736E] CHECK NOT FOR REPLICATION (([AA_PERI]>(1980)))
GO
ALTER TABLE [dbo].[TTPERI_CCCP] WITH NOCHECK ADD CONSTRAINT [CK__TTPERI_CC__MM_PE__55B597A7] CHECK NOT FOR REPLICATION (([MM_PERI]>=(0) AND [MM_PERI]<=(13)))
GO
ALTER TABLE [dbo].[TTPERI_CCCP] ADD CONSTRAINT [PK__TTPERI_C__9D075D556DCD185A] PRIMARY KEY CLUSTERED  ([CO_EMPR], [AA_PERI], [MM_PERI]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTPERI_CCCP] ADD CONSTRAINT [FK__TTPERI_CC__CO_EM__6498B3DB] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
